﻿    function init_table_list (tableid)
    {               
        var tb = document.getElementById(tableid);
        var tbid = tb.getElementsByTagName("tr");
        for (var i in tbid) {
            tbid[i].onmouseover = function() {highlight_on(this,'#ffefc5')}            
            tbid[i].onmouseout = function() {highlight_off(this,'')}    
        }    
    }
    
    function highlight_on (thisobj,color)
    {
        thisobj.style.backgroundColor=color;
    }

    function highlight_off (thisobj,color)
    {
        thisobj.style.backgroundColor=color;
    }    

